<?php

final class Index_Model extends Model {
	
	public function miniaturas() {
		$stmt = $this->db->prepare("SELECT m.id,m.codigo,m.nome,m.preco,m.estoque,c.nome FROM miniaturas 
		AS m INNER JOIN categoria AS c ON m.id_categoria=c.id");
		$stmt->execute();
		$result = $stmt->fetchAll();
	}
	
}

?>